<?php
$cost = $_POST['cost'];
$cart = $_POST['cart'];
session_start();
$_SESSION['cart']=array();
if( $cart ) {
  $cart = json_decode( stripslashes( $cart ) , true);
  $_SESSION['cart']['list'] = $cart;
}
if( $cost ) {
    $_SESSION['cart']['cost'] = $cost;
}
/*
ob_start();
print_r( $cart );
$param = ob_get_contents( );
ob_end_clean();
file_put_contents( 'log.txt', $param );*/
?>
